package com.xtaller.test.anync;

import com.alibaba.fastjson.JSONObject;
import lombok.var;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @version V1.0
 * @author: Taller
 * @date: 2019-08-22
 * @Description:
 */
@Component
public class EventTask {

    @Async("taskExecutor")
    public void createEx(JSONObject log){
        // 业务操作 todo
        System.out.println(log.toJSONString());
    }
}
